package day02;

public class LongDemo {
    public static void main(String[] args) {
        //long:长整型，8个字节，-2^63~2^63-1
        long a = 25L;
        //long b = 10000000000;编译错误
        long c = 10000000000L;
        //long d = 3.14;编译错误

        long e = 1000000000*2*10L;//20y
        long f = 1000000000*3*10L;//溢出
        long g = 1000000000L*3*10;//30y
        System.out.println(f);
        System.out.println(g);
    }
}
